home *** CD-ROM | disk | FTP | other *** search
- function setupLeaf(t)
- {
- t.xVel = Math.random() * (leafWidth * 0.5);
- t.yVel = leafHeight;
- t.gotoAndPlay(11 + Math.floor(Math.random() * 3));
- }
- function doLeaf(t)
- {
- t.xVel * 0;
- t._x -= t.xVel;
- t.yVel += leafGravity;
- if(t.yVel > leafMaxGrav)
- {
- t.yVel = leafMaxGrav;
- }
- t._y += t.yVel;
- }
- leafHeight = 0.1;
- leafWidth = 5;
- leafGravity = 2;
- leafMaxGrav = 1.5;
-